Skip to content

Mesh loaders kevin #894

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 41 commits into from
Aug 11, 2025
Merged

Mesh loaders kevin #894

merged 41 commits into from
Aug 11, 2025

Conversation

kevyuu
Copy link
Contributor

@kevyuu kevyuu commented Jun 25, 2025

Implement extra geometries

Base automatically changed from mesh_loaders to master July 1, 2025 09:09
Comment on lines 423 to 431
auto switch_vec = [](hlsl::uint32_t4 val1, hlsl::uint32_t4 val2, hlsl::bool4 mask)
{
hlsl::uint32_t4 retval;
retval.x = mask.x ? val2.x : val1.x;
retval.y = mask.y ? val2.y : val1.y;
retval.z = mask.z ? val2.z : val1.z;
retval.w = mask.w ? val2.w : val1.w;
return retval;
};

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dont we have a mix/select in our intrinsics.hlsl for this ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mix only work for floating point. there is no select

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@keptsecret shouldn't our mix(vector<T,N>,vector<T,N>,vector<bool,N>) work with any T?

Copy link
Contributor

@keptsecret keptsecret Aug 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should. Doesn't have the new changes on the hlsl_bxdf branch, but master right now mix(vector<T,N>,vector<T,N>,vector<bool,N>) should be routed to the looped version that uses mix(T, T, bool)

@devshgraphicsprogramming
Copy link
Member

Aisde from my nitpicks, I assume everything works?

@devshgraphicsprogramming
Copy link
Member

@kevyuu was about to merge but the CI checks are failing, please check the logs and see whats wrong.

@devshgraphicsprogramming
Copy link
Member

btw what's the companion examples/tests PR ?

@kevyuu
Copy link
Contributor Author

kevyuu commented Aug 4, 2025

btw what's the companion examples/tests PR ?

Devsh-Graphics-Programming/Nabla-Examples-and-Tests#199

@devshgraphicsprogramming devshgraphicsprogramming merged commit 230a3de into master Aug 11, 2025
13 of 14 checks passed
@devshgraphicsprogramming devshgraphicsprogramming deleted the mesh_loaders_kevin branch August 11, 2025 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants